package clone;

/**
 * 通过clone创建对象
 */
public class Test01 {

    public static void main(String[] args) {
        Student student = new Student();
        student.setName("张三");
        student.setAge(12);
        try {
            Object object = student.clone();
            System.out.println(object);
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }

    }
}
